﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace WebsiteBanThucAn.Models
{
    public class MonAnModel
    {
        public static string monan = "monan";
        public static string monanid = "monanid";
        public static string tenmonan = "tenmonan";
        public static string gia = "gia";
        public static string loaimonanid = "loaimonanid";
        public static string mota = "mota";
        public static string hinhmonan = "hinhmonan";
        public static string ngaycapnhat = "ngaycapnhat";
        public static string solanxem = "solanxem";
        public static string soluong = "soluong";
        public static string hethang = "hethang";
        [Key]
        public int MonanID { get; set; }
        [Required(ErrorMessage="Thiếu tên món ăn")]
        public string Tenmonan { get; set; }
        [Required(ErrorMessage = "Thiếu giá")]
        public float Gia { get; set; }
        public int LoaimonanID { get; set; }
        [Required(ErrorMessage = "Thiếu mô tả")]
        public string Mota { get; set; }
        [Required(ErrorMessage = "Thiếu hình món ăn")]
        public string Hinhmonan { get; set; }
        public DateTime Ngaycapnhat { get; set; }
        public int Solanxem { get; set; }
        public int Soluong { get; set; }
        public bool Hethang { get; set; }
    }
}
